import { getUrlValue } from './url'


export const getDebugValue = (key: string) => {
  let value = sessionStorage.getItem(key)
  if (!value) {
    value = getUrlValue(location.href)[key]
    if (value) {
      sessionStorage.setItem(key, value)
    }
  }
  return value

}
